{% extends "main/student-base.html" %}
{% block title %}首页{% endblock %}\
{% block head %}
    <script src="https://cdn.jsdelivr.net/npm/echarts@5.5.0/dist/echarts.min.js"></script>
{% endblock %}

{% block card %}<div class="layui-card-header"><h2>推荐书籍</h2></div>{% endblock %}
{% block body %}
<div id="main" style="width: 900px;height:470px;">


<!-- 样式 ？？ ？？ -->
{#{% for book in books %}#}
{#    <p>{{ book }}</p>#}
{#{% endfor %}#}

 <table lay-even id="result" lay-filter="re">

      <thead>
        <tr>

          <th lay-data="{width:200}">书名&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
              &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
          &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
          &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</th>
          <th lay-data="{width:200}">推荐指数</th>
        </tr>
      </thead>

      <tbody>
      {% if rec == None %}
          您还没有借阅记录，无法推荐
    {% else %}
        {% for one in rec %}
      <tr>
          <td>{{ one[0].book_name}}</td>
          <td>{{ one[1]}}</td>
      </tr>
      {% endfor %}
    {% endif %}


      </tbody>
    </table>
</div>

{% endblock %}


